export const formComponentConfig = {
  selectLike: () =>
    import('@/common/views/baseComponent/formComp/selectLike.vue'),
};

// 当前页面要渲染的查询条件
export const formRenderKeys = [
  'billNo',
  'zeroCategoryName',
  'unCreator',
  'undertakingUnit',
  'unCreateTime',
  'billStatus',
  'validFlag',
  'supplierCode',
  'materialNo',
  'drawingNumber',
  'urgencyDegree',
];
export const formRenderConfig = {
  billNo: {
    label: '单据编号',
    field: 'billNo',
    width: '200px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入单据编号',
    },
  },
  zeroCategoryName: {
    label: '零级品类',
    width: '200px',
    field: 'zeroCategoryName',
    componentName: 'dictSelect',
    componentProps: {
      allowClear: 'true',
      dictType: 'zeroLevelCategory',
    },
  },
  unCreator: {
    label: '编制人',
    field: 'unCreator',
    width: '200px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入编制人',
    },
  },
  undertakingUnit: {
    label: '编制人单位',
    field: 'undertakingUnit',
    width: '200px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入编制人单位',
    },
  },

  unCreateTime: {
    label: '编制时间',
    field: 'unCreateTime',
    width: '200px',
    componentName: 'rangPicker',
    formItemProps: {
      style: 'width: 595px !important',
    },
    componentProps: {
      allowClear: 'true',
    },
  },
  billStatus: {
    label: '单据状态',
    width: '200px',
    field: 'billStatus',
    componentName: 'dictSelect',
    componentProps: {
      allowClear: 'true',
      dictType: 'billStatus',
    },
  },
  validFlag: {
    label: '有效状态',
    width: '200px',
    field: 'validFlag',
    componentName: 'dictSelect',
    componentProps: {
      allowClear: 'true',
      dictType: 'uniqueValidFlag',
    },
  },
  supplierCode: {
    label: '供应商编码',
    width: '200px',
    field: 'supplierCode',
    componentName: 'inputModal',
    componentProps: {
      tltle: '供应商编码',
      type: 'supplyName',
      labelName: 'supplierCode',
      valueName: 'supplierCode',
    },
  },
  materialNo: {
    label: '物料编码',
    width: '200px',
    field: 'materialNo',
    componentName: 'inputModal',
    componentProps: {
      tltle: '物料编码',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },
  drawingNumber: {
    label: '图号',
    width: '200px',
    field: 'drawingNumber',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入图号',
    },
  },
  // urgencyDegree: {
  //   label: '紧急程度',
  //   width: '200px',
  //   field: 'urgencyDegree',
  //   componentName: 'dictSelect',
  //   componentProps: {
  //     allowClear: 'true',
  //     dictType: 'urgencyDegree',
  //   },
  // },
};
